<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.sinodata.bsm.center.purview.UserFunctionValidate"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>资源新增</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>      
     <%@ include file="../include/common.jsp"%>
     <link href="${pageContext.request.contextPath}/style/default/form/ui.tabs.css" type="text/css" rel="stylesheet" media="print, projection, screen"/>
     <script type="text/javascript" src="${pageContext.request.contextPath}/js/form/ui.tabs.js"></script>
     <style type="text/css">
     	#fragment-1,#fragment-2,#fragment-3,#fragment-4{
 			padding:0px;
 		}
     	iframe {
			width:100%;
			height:100%;
		}
     </style>
	<script type=text/javascript>
	$(document).ready(function(){
		$('#container-1').fadeIn("fast");
		$('#container-1 ul').tabs({
			show: function() {
				var li_index = $('#container-1 ul').tabsSelected();
			}
		});
		
		var resize;
		$('iframe').bind('resize',resize =function(){
			$('iframe').height($(window.parent).height()-$('#container-1 ul').height()-45);
		});
		resize();
		
		
		var hasEditResPrivalige = '${id==null?(viewHasAddResPrivalige?"true":"false"):(hasExitPrivalige?"true":"false")}';
		if(hasEditResPrivalige=='false'){
			var liList = $('ul li');
			var divList = $('#container-1 div');
			$(liList[0]).remove();
			$(liList[3]).remove();
			$(divList[0]).remove();
			$(liList[1]).addClass("ui-tabs-selected");
			$(divList[1]).removeClass("ui-tabs-hide");
		}
	});
</script>
	
  </head>
  <body >
	<div id="container-1" style="height:100%;">
		<ul>
			<li><a href="#fragment-1"><span>新增单个资源</span></a></li>
		    <li><a href="#fragment-5"><span>新增应用系统</span></a></li>
			<li><a href="#fragment-2"><span>集成TIVOLI资源</span></a></li>
			<li><a href="#fragment-4"><span>集成网络资源</span></a></li>
			<li><a href="#fragment-3"><span>导入资源</span></a></li>
		</ul> 
		<div id="fragment-1" style="height:100%;width:100%;">
			<iframe  src="res!guide.action?id=${id}&viewId=${viewId}"   frameborder="0"></iframe>
		</div>
		<!--  div id="fragment-5" >
			<iframe  src="res-app!common.action?id=${id}&viewId=${viewId}" style="height:100%;"  frameborder="0"></iframe>
		</div-->
		<div id="fragment-2" >
			<iframe  src="../integration/tivoli!guide.action?id=${id}&viewId=${viewId}" style="height:100%;"  frameborder="0"></iframe>
		</div>
		<div id="fragment-4" >
			<iframe  src="../integration/inmpop!guide.action?id=${id}&viewId=${viewId}" style="height:100%;"  frameborder="0"></iframe>
		</div>
		<div id="fragment-3" >
			<iframe  src="res-type!resImport.action?resId=${id}&viewId=${viewId}"  style="height:100%;"  scrolling="no" frameborder="0"></iframe>
		</div>
		
	</div>
  </body>
</html>
